<% layout("/WEB-INF/view/console/skins/skin_2/layout.html", {}) {
%>
<div class="row">
    <div class="col-md-12">
        <div class="widget-container fluid-height clearfix">
            <div class="widget-content padded clearfix">
                <div class='row'>
                    <div class='col-md-12'>
                        <form name="boProxyOrderGoods_form" id="boProxyOrderGoods_form" class='form-inline'>
                            <div class='form-group col-md-3' style='margin-top: 10px;'>
 <label title='order_id'  >orde...：</label>
 <input  onkeyup='boProxyOrderGoodsConsoleGrid.enterToQuery(event);' type='text' class='form-control' id='orderId' name='orderId' placeholder=''>
 </div>
 <div class='form-group col-md-3' style='margin-top: 10px;'>
 <label title='goods_id'  >good...：</label>
 <input  onkeyup='boProxyOrderGoodsConsoleGrid.enterToQuery(event);' type='text' class='form-control' id='goodsId' name='goodsId' placeholder=''>
 </div>
 <div class='form-group col-md-3' style='margin-top: 10px;'>
 <label title='订单商品标题'  >订单商品...：</label>
 <input  onkeyup='boProxyOrderGoodsConsoleGrid.enterToQuery(event);' type='text' class='form-control' id='orderGoodsTitle' name='orderGoodsTitle' placeholder=''>
 </div>
 <div class='form-group col-md-3' style='margin-top: 10px;'>
 <label title='商品数量'  >商品数量：</label>
 <input  onkeyup='boProxyOrderGoodsConsoleGrid.enterToQuery(event);' type='text' class='form-control' id='orderGoodsNumber' name='orderGoodsNumber' placeholder=''>
 </div>
 <div class='form-group col-md-3' style='margin-top: 10px;'>
 <label title='order_goods_price'  >orde...：</label>
 <input  onkeyup='boProxyOrderGoodsConsoleGrid.enterToQuery(event);' type='text' class='form-control' id='orderGoodsPrice' name='orderGoodsPrice' placeholder=''>
 </div>
 <div class='form-group col-md-3' style='margin-top: 10px;'>
 <label title='order_goods_image'  >orde...：</label>
 <input  onkeyup='boProxyOrderGoodsConsoleGrid.enterToQuery(event);' type='text' class='form-control' id='orderGoodsImage' name='orderGoodsImage' placeholder=''>
 </div>
 
                        </form>
                    </div>
                </div>
                <div class='row'>
                    <div align="center">
                        <button type='button' class='btn btn-default' id='boProxyOrderGoodsQuerySearch'>查询</button>
                        <button type='button' class='btn btn-default' id='boProxyOrderGoodsReset'>重置</button>
                    </div>
                </div>
                 <div id="boProxyOrderGoodsToolbar" class="btn-group">
                              <button type="button" class="btn btn-default" onclick="consoleOpenWindow('boProxyOrderGoods','${ctxPath}/console/bo_proxy_order_goods/add','新增')">
                                  <i class="glyphicon glyphicon-plus"></i>
                              </button>
                              <button type="button" class="btn btn-default" onclick='boProxyOrderGoodsConsoleGrid.delete("orderGoodsId","${ctxPath}/console/bo_proxy_order_goods/delete");'>
                                  <i class="glyphicon glyphicon-trash"></i>
                              </button>
                 </div>
                     <div class='row'>
                              <div class='col-md-12'>
                                  <table id="boProxyOrderGoods" data-toggle="table"
                                         data-url="${ctxPath}/console/bo_proxy_order_goods/json"
                                         data-pagination="true"
                                         data-query-params="boProxyOrderGoodsLoadParam"
                                         method="post"
                                         data-side-pagination="server"
                                         data-show-refresh="true"
                                         data-show-toggle="true"
                                         data-pagination-loop="false"
                                         data-show-columns="true"
                                         data-toolbar="#boProxyOrderGoodsToolbar">
                                      <thead>
                                      <tr>
                                           <th data-checkbox="true"></th>
                                            <th data-field='orderGoodsId' data-visible='false'>ID</th>
  <th data-sortable='true' data-field='orderId'>order_id</th>
  <th data-sortable='true' data-field='goodsId'>goods_id</th>
  <th data-sortable='true' data-field='orderGoodsTitle'>订单商品标题</th>
  <th data-sortable='true' data-field='orderGoodsNumber'>商品数量</th>
  <th data-sortable='true' data-field='orderGoodsPrice'>order_goods_price</th>
  <th data-sortable='true' data-field='orderGoodsImage'>order_goods_image</th>
  <th data-field='orderGoodsId' data-formatter='boProxyOrderGoodsTableOperate'>操作</th>
 
                                      </tr>
                                      </thead>
                                  </table>
                              </div>
                     </div>
            </div>
        </div>
    </div>
</div>
<script type="text/javascript">
     var boProxyOrderGoodsConsoleGrid =new consoleGrid({table_id:"boProxyOrderGoods"});
     boProxyOrderGoodsConsoleGrid.init();
     function boProxyOrderGoodsTableOperate(value){
         return "<button type='button' class='btn btn-xs btn-default command-edit' onclick='consoleOpenWindow(\"boProxyOrderGoods\",\"${ctxPath}/console/bo_proxy_order_goods/edit?id="+value+"\",\"编辑\")'><span class='glyphicon glyphicon-pencil'></span></button> ";
     }
    function boProxyOrderGoodsLoadParam(params){
        params.query=boProxyOrderGoodsQueryString();

        return params;
    }
     function boProxyOrderGoodsQueryString() {
         var objQuery = new Object();
                objQuery.orderId=$('#orderId').val()==''?null:$('#orderId').val(); 
     objQuery.goodsId=$('#goodsId').val()==''?null:$('#goodsId').val(); 
     objQuery.orderGoodsTitle=$('#orderGoodsTitle').val()==''?null:$('#orderGoodsTitle').val(); 
     objQuery.orderGoodsNumber=$('#orderGoodsNumber').val()==''?null:$('#orderGoodsNumber').val(); 
     objQuery.orderGoodsPrice=$('#orderGoodsPrice').val()==''?null:$('#orderGoodsPrice').val(); 
     objQuery.orderGoodsImage=$('#orderGoodsImage').val()==''?null:$('#orderGoodsImage').val(); 
 
         var queryString = JSON.stringify(objQuery);
         return queryString;
     }

    
 </script>
<%} %>
 